package net.sunofbeach.blog.controller.admin;

import net.sunofbeach.blog.pojo.Images;
import net.sunofbeach.blog.response.ResponseResult;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/admin/image")
public class ImageApi {

    @PostMapping
    public ResponseResult uploadImage(){
        return null;
    }

    @DeleteMapping("/{imageId}")
    public ResponseResult deleteImage(@PathVariable("imageId") String imageId){
        return null;
    }
    @PutMapping("/{imageId}")
    public ResponseResult updateImage(@PathVariable("imageId") String imageId, @RequestBody Images images){
        return null;
    }

    @GetMapping("/{imageId}")
    public ResponseResult getImage(@PathVariable("imageId") String imageId){
        return null;
    }

    @GetMapping("/list")
    public ResponseResult listImages(@RequestParam("page") int page , @RequestParam("size") int size){
        return null;
    }

}
